<!--空白页面参考模版-->
{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <form id="dataForm" class="dataForm form-horizontal" action="{:url('sendEmail')}" method="post"
                      enctype="multipart/form-data">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="fields-group">

                            <div class="form-group">
                                <label for="address" class="col-sm-2 control-label">收信人</label>
                                <div class="col-sm-8">
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                        <input maxlength="300" id="address" name="address" class="form-control"
                                               placeholder="多个地址请用英文逗号隔开">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="subject" class="col-sm-2 control-label">主题</label>
                                <div class="col-sm-8">
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-file-text"></i></span>
                                        <input maxlength="300" id="subject" name="subject"
                                              class="form-control"
                                               placeholder="主题">
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="subject" class="col-sm-2 control-label">邮件正文</label>
                                <div class="col-sm-8">

                                        <textarea id="content" name="content" class="form-control" style="height: 300px"
                                                  placeholder="邮件正文"></textarea>

                                </div>
                            </div>
                            <div class="form-group">
                                <label for="subject" class="col-sm-2 control-label">附件</label>
                                <div class="col-sm-8">
                                    <div class="input-group">
                                        <div class="btn btn-default btn-file">
                                            <i class="fa fa-paperclip"></i>点击上传
                                            <input type="file" id="attachment" name="attachment"
                                                   accept="image/jpeg,image/png,image/gif,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
                                        </div>
                                        <small class="help-block">最大不超过2MB</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="box-footer">
                        {:token()}
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    保存
                                </button>
                            </div>
                            <div class="btn-group">
                                <button type="reset" class="btn flat btn-default dataFormReset">
                                    重置
                                </button>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>

</section>

<script>
    $('#dataForm').validate();
</script>

{/block}